<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>订单流程</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
    <script type="text/javascript" src="plug-in/ckeditor_new/ckeditor.js"></script>
  <script type="text/javascript" src="plug-in/ckfinder/ckfinder.js"></script>
  <script type="text/javascript">
  $(document).ready(function(){
	$('#tt').tabs({
	   onSelect:function(title){
	       $('#tt .panel-body').css('width','auto');
		}
	});
	$(".tabs-wrap").css('width','100%');
  });
 </script>
 </head>
 <body style="overflow-x: hidden;">
  <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="orderProcessController.do?doAdd">
					<input id="id" name="id" type="hidden" value="${orderProcessPage.id }">
	<table cellpadding="0" cellspacing="1" class="formtable">
		<tr>
			<td align="right">
				<label class="Validform_label">产品订单ID:</label>
			</td>
			<td class="value">
		     	 <input id="orderProductId" name="orderProductId" type="text" style="width: 150px" class="inputxt">
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">产品订单ID</label>
			</td>
			<td align="right">
				<label class="Validform_label">环节名称:</label>
			</td>
			<td class="value">
		     	 <input id="activityName" name="activityName" type="text" style="width: 150px" class="inputxt">
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">环节名称</label>
			</td>
		</tr>
		<tr>
			<td align="right">
				<label class="Validform_label">流程实例ID:</label>
			</td>
			<td class="value">
		     	 <input id="instanceId" name="instanceId" type="text" style="width: 150px" class="inputxt">
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">流程实例ID</label>
			</td>
			<td align="right">
				<label class="Validform_label">待办人ID:</label>
			</td>
			<td class="value">
		     	 <input id="assignedId" name="assignedId" type="text" style="width: 150px" class="inputxt">
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">待办人ID</label>
			</td>
		</tr>
		<tr>
			<td align="right">
				<label class="Validform_label">待办人名称:</label>
			</td>
			<td class="value">
		     	 <input id="assignedName" name="assignedName" type="text" style="width: 150px" class="inputxt">
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">待办人名称</label>
			</td>
			<td align="right">
				<label class="Validform_label">待办人电话:</label>
			</td>
			<td class="value">
		     	 <input id="assignedTel" name="assignedTel" type="text" style="width: 150px" class="inputxt">
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">待办人电话</label>
			</td>
		</tr>
		<tr>
			<td align="right">
				<label class="Validform_label">是否合并:</label>
			</td>
			<td class="value">
		     	 <input id="isMerge" name="isMerge" type="text" style="width: 150px" class="inputxt">
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">是否合并</label>
			</td>
			<td align="right">
				<label class="Validform_label">父订单:</label>
			</td>
			<td class="value">
		     	 <input id="parentId" name="parentId" type="text" style="width: 150px" class="inputxt">
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">父订单</label>
			</td>
		</tr>
		<tr>
			<td align="right">
				<label class="Validform_label">备注:</label>
			</td>
			<td class="value">
		     	 <input id="remark" name="remark" type="text" style="width: 150px" class="inputxt">
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">备注</label>
			</td>
		</tr>
	</table>
			<div style="width: auto;height: 200px;">
				<%-- 增加一个div，用于调节页面大小，否则默认太小 --%>
				<div style="width:800px;height:1px;"></div>
				<t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
				 <t:tab href="orderProcessController.do?orderFormList&id=${orderProcessPage.id}" icon="icon-search" title="xdkj" id="orderForm"></t:tab>
				</t:tabs>
			</div>
			</t:formvalid>
			<!-- 添加 附表明细 模版 -->
	<table style="display:none">
	<tbody id="add_orderForm_table_template">
		<tr>
			 <td align="center"><div style="width: 25px;" name="xh"></div></td>
			 <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
				  <td align="left">
					  	<input name="orderFormList[#index#].operateId" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">操作人ID</label>
				  </td>
				  <td align="left">
					  	<input name="orderFormList[#index#].operateName" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">操作人名称</label>
				  </td>
				  <td align="left">
					  	<input name="orderFormList[#index#].operateTime" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">操作时间</label>
				  </td>
				  <td align="left">
					  	<input name="orderFormList[#index#].specification" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">规格或尺寸</label>
				  </td>
				  <td align="left">
					  	<input name="orderFormList[#index#].approval" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">订单审核是否通过</label>
				  </td>
				  <td align="left">
					  	<input name="orderFormList[#index#].productionNumber" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">生产编号</label>
				  </td>
				  <td align="left">
					  	<input name="orderFormList[#index#].actualProgress" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">实际进行</label>
				  </td>
				  <td align="left">
					  	<input name="orderFormList[#index#].isFinish" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">生产是否完成</label>
				  </td>
				  <td align="left">
					  	<input name="orderFormList[#index#].isInstall" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">是否需要上门安装</label>
				  </td>
				  <td align="left">
					  	<input name="orderFormList[#index#].receiving" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">门市确认收货</label>
				  </td>
				  <td align="left">
					  	<input name="orderFormList[#index#].deliverGoods" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">发货</label>
				  </td>
				  <td align="left">
					  	<input name="orderFormList[#index#].customerReceiving" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">客户确认收货</label>
				  </td>
				  <td align="left">
					  	<input name="orderFormList[#index#].paymentDeadline" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">尾款</label>
				  </td>
				  <td align="left">
					  	<input name="orderFormList[#index#].paymentStart" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">定金</label>
				  </td>
				  <td align="left">
					  	<input name="orderFormList[#index#].isDelegation" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">是否为代收款</label>
				  </td>
				  <td align="left">
					  	<input name="orderFormList[#index#].paymentMethods" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">付款方式</label>
				  </td>
				  <td align="left">
					  	<input name="orderFormList[#index#].isContinue" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">是否继续下一环节</label>
				  </td>
				  <td align="left">
					  	<input name="orderFormList[#index#].remark" maxlength="45" 
					  		type="text" class="inputxt"  style="width:120px;"
					               
					               >
					  <label class="Validform_label" style="display: none;">备注</label>
				  </td>
			</tr>
		 </tbody>
		</table>
 </body>
 <script src = "material/process/orderProcess.js"></script>	